package com.shycloud.mido.task.api.feign;

import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.task.api.entity.SmMemberNotice;
import com.shycloud.mido.task.api.entity.SmMemberTask;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "shycloud-task-biz")
public interface RemoteTaskService {

	/**
	 * 新增会员通知
	 *
	 * @param memberNotice 会员通知信息
	 * @return R
	 */
	@PostMapping(value = "/notice/addNotice")
	R addNotice(@RequestBody SmMemberNotice memberNotice);

	@GetMapping(value = "/task/getTaskByPageId")
	List<SmMemberTask> getTaskByPageId(@RequestParam("pageId") Integer pageId);

	@GetMapping(value = "/task/complate/receiveAward")
	R receiveAward(@RequestParam("taskId") Integer taskId,
			@RequestParam("memberId") String memberId,
			@RequestParam("excStr") String excStr);

}
